package com.ruoyi.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.Date;

@Data
public class VerUser extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long userId;

    /** 邮箱 */
    @Excel(name = "email")
    private String email;

    /** 昵称 */
    @Excel(name = "nickname")
    private String nickName;

    /** 用户类型（0:tourist 1:registered user 2:major customer） */
    @Excel(name = "user type", readConverterExp = "0=:tourist,1=:registered,u=ser,2=:major,c=ustomer")
    private String userType;

    /** 手机号 */
    @Excel(name = "phonenumber")
    private String phonenumber;

    /** 性别（0:male 1:female 2:unknown） */
    @Excel(name = "gender", readConverterExp = "0=:male,1=:female,2=:unknown")
    private String gender;

    /** 密码 */
    @Excel(name = "password")
    private String password;

    /** 账号状态（0:normal 1:deactivated） */
    @Excel(name = "account status", readConverterExp = "0=:normal,1=:deactivated")
    private String status;

    /** 是否删除（0:normal 2:delete） */
    private String delFlag;

    /** 登录IP */
    @Excel(name = "last login IP")
    private String loginIp;

    /** 登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "last login time", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loginDate;

    /** 密码更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "password last update time", width = 30, dateFormat = "yyyy-MM-dd")
    private Date pwdUpdateDate;

}
